/**
 * 
 */
package com.redside.model.lookup;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.redside.model.list.OptionsBean;

/**
 * @author PCHAPMAN
 *
 */
@Entity
@Table(name = "violation_type_lkp")
public class ViolationTypeLkp implements Serializable{
    
    private static final long serialVersionUID = 8700435272018208194L;

    @Id
    @Column( name="id", unique=true, nullable=false, updatable=false )
    private Long id;
    
    @Column(name="description",nullable=false,length=50)
    private String description;
    
    /**
     * 
     */
    public ViolationTypeLkp() {
        super();
    }
    
    public ViolationTypeLkp(OptionsBean lookup) {
        this.id = Long.valueOf(lookup.getId());
        this.description = lookup.getValue();
    }
    
    /**
     * @param violationTypeId
     * @param description
     */
    public ViolationTypeLkp(Long violationTypeId, String violationDescription) {
        this.id = violationTypeId;
        this.description = violationDescription;
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

 
}
